package com.bw.module_main.ui.main

import com.bw.module_main.http.MainApi
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

/**
 * @author zhy
 * @date 2025-09-19 11:09
 * @description
 */
class MainRepository @Inject constructor() {
    @Inject
    lateinit var api: MainApi


    fun checkUpdate() = flow{
        emit(api.checkUpdate())
    }.flowOn(Dispatchers.IO)
}